import request from '@/utils/request'
export const addSp = (data: {
  goods_name: string
  goods_price: number
  goods_weight: number
  goods_cat: string
  goods_number: number
  goods_introduce?: string
  pics?: [{ pic: string }]
  attrs?: [{ attr_id: number; attr_value: string }]
}) => {
  return request({
    url: '/api/sp/add',
    method: 'post',
    data,
  })
}
